package com.wfit.bankproject.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wfit.bankproject.entity.Details;
import com.wfit.bankproject.entity.JsonResult;
import com.wfit.bankproject.entity.Role;
import com.wfit.bankproject.service.DetailsService;
import com.wfit.bankproject.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/details")
public class DetailsController {


    @Autowired
    private DetailsService service;
    @PostMapping("/page")
    public JsonResult getPage(Long userId,Integer current, Integer size){
        IPage<Details> detailsIPage = service.selectPage(userId, current, size);
        return JsonResult.ok(detailsIPage);
    }

}
